<?php
/***************************************************************
*  Copyright notice
*  (c) 2009, jianyuzhu@gmail.com
*  All rights reserved
*  This script is part of the PPEMI project.
***************************************************************/

//user login
define('USER_LOGIN_SUCCESS', 			'1');
define('USER_LOGIN_INVALID', 			'2');
define('USER_LOGIN_INVALID_HACK', 		'3');
define('USER_LOGIN_USERNAME_NULL', 		'10');
define('USER_LOGIN_USERNAME_INVALID', 	'11');
define('USER_LOGIN_USERNAME_VALID', 	'12');
define('USER_LOGIN_PASSWORD_NULL', 		'20');
define('USER_LOGIN_PASSWORD_INVALID', 	'21');
define('USER_LOGIN_PASSWORD_VALID', 	'22');
define('USER_LOGIN_CHECK_TIMES', 		'0');

//user type
define('USER_TYPE_GUEST',		'guest');
define('USER_TYPE_VIRTUAL',		'virtual');
define('USER_TYPE_REGISTER',	'register');
define('USER_TYPE_CUSTOMER',	'customer');
define('USER_TYPE_RESELLER',	'reseller');
define('USER_TYPE_MANAGER',		'manager');
define('USER_TYPE_ADMIN',		'admin');

//ads type
define('ADS_TYPE_IMG',		0);
define('ADS_TYPE_FLASH',	1);
define('ADS_TYPE_CODE',		2);
define('ADS_TYPE_TEXT',		3);

//mail priority
define('MAIL_PRIORITY_LOW',     1);
define('MAIL_PRIORITY_NORMAL',	3);
define('MAIL_PRIORITY_HIGH',	5);
define('MAIL_PRIORITY_HIGHEST',	9);

//mail mailer
define('MAIL_MAILER_MAIL',	'mail');
define('MAIL_MAILER_SENDMAIL',	'sendmail');
define('MAIL_MAILER_SMTP',	'smtp');

//mail send type
define('MAIL_SEND_QUEUE', 'queue');
define('MAIL_SEND_IMMEDIATE', 'immediate');
define('MAIL_SEND_TYPE', 'immediate');

//video process status
define('VIDEO_PROCESS_NOT', 0);
define('VIDEO_PROCESS_START', 1);
define('VIDEO_PROCESS_DOING', 2);
define('VIDEO_PROCESS_DONE', 3);
define('VIDEO_PROCESS_OK', 4);
define('VIDEO_PROCESS_ERROR', 5);

//order status
/*STYLE ONE
//NOT USE THIS GROUP
define('ORDER_STATUS_TEMPORARY', 0);	//temporary
define('ORDER_STATUS_PENDING', 1);		//to be paid
define('ORDER_STATUS_SUBMITTED', 2);	//has been submitted
define('ORDER_STATUS_ACCEPTTED', 3);	//have received
define('ORDER_STATUS_PROCESSING', 4);	//processing
define('ORDER_STATUS_SHIPPED', 5);		//have been shipped
define('ORDER_STATUS_DELIVERED', 6);	//have been received
define('ORDER_STATUS_INVALID', 7);		//invalid
define('ORDER_STATUS_REJECTED', 8);		//has refused
define('ORDER_STATUS_CANCELLED', 9);		//has cancel
*/
//
/*STYLE TWO
define('ORDER_STATUS_TEMPORARY', 11);	//temporary
define('ORDER_STATUS_PENDING', 12);		//to be paid
define('ORDER_STATUS_ACCEPTTED', 13);	//have received payment

define('ORDER_STATUS_SUBMITTED', 21);	//has been submitted
define('ORDER_STATUS_PROCESSING', 22);	//processing
define('ORDER_STATUS_SHIPPED', 23);		//have been shipped
define('ORDER_STATUS_DELIVERED', 24);	//have been received

define('ORDER_STATUS_COMPLETED', 31);	//have completed
define('ORDER_STATUS_INVALID', 32);		//invalid
define('ORDER_STATUS_FAILED', 32);		//failed
define('ORDER_STATUS_CANCELLED', 33);	//has cancel
define('ORDER_STATUS_REJECTED', 34);	//has refused
define('ORDER_STATUS_RETURNED', 35);	//returned

define('ORDER_STATUS_BACKORDERED', 41);	//backordered
*/

//ORDER STATUS
//STYLE THREE
define('ORDER_STATUS_TEMPORARY', 0);	//temporary
define('ORDER_STATUS_UNSUBMITTED', 10);	//unsubmitted
define('ORDER_STATUS_SUBMITTED', 11);	//has been submitted
define('ORDER_STATUS_PROCESSING', 12);	//processing by admin
define('ORDER_STATUS_PENDING', 13);		//pending customer confirm
define('ORDER_STATUS_ACCEPTTED', 14);	//have accepted by customer
define('ORDER_STATUS_CONFIRMED', 14);	//customer confirm the order

define('ORDER_STATUS_PAYING', 20);		//paying, awaiting payment, cash/check/cod...
define('ORDER_STATUS_PAY_BLOCKING', 21);//terms, blocking order
define('ORDER_STATUS_PAY_OVERCL', 22);	//terms, over credit line
define('ORDER_STATUS_PAY_DELAY', 23);	//terms, payment delay
define('ORDER_STATUS_PAY_SHIPPING', 24);//shipping, waiting for shipping
define('ORDER_STATUS_PAID', 25);		//have been paid

define('ORDER_STATUS_SHIPPED', 26);		//have been shipped
define('ORDER_STATUS_SHIPPED_PARTIAL', 27);	//have been shipped partial
define('ORDER_STATUS_DELIVERED', 28);	//have been received

define('ORDER_STATUS_COMPLETED', 31);	//have completed
define('ORDER_STATUS_INVALID', 32);		//invalid
define('ORDER_STATUS_FAILED', 32);		//failed
define('ORDER_STATUS_CANCELLED', 33);	//has cancel
define('ORDER_STATUS_REJECTED', 34);	//has refused
define('ORDER_STATUS_DECLINED', 34);	//Declined
define('ORDER_STATUS_RETURNED', 35);	//returned

define('ORDER_STATUS_BACKORDERED', 41);	//backordered
define('ORDER_STATUS_DELETED', 49);		//deleted

//order process
//common	customer submit then pay
//complex	two step for customer resubmit
define('ORDER_PROCESS_MODEL', 'common');
define('ORDER_PROCESS_SAVEORDER', '0');
define('ORDER_STATUS_DEFAULT', ORDER_STATUS_PENDING);
define('ORDER_STATUS_DEFAULT_PAID', ORDER_STATUS_PAID);

//order payment
define('ORDER_PAYMENT_UNPAID', 1);		//Unpaid
define('ORDER_PAYMENT_PAID', 2);		//Paid
define('ORDER_PAYMENT_PARTPAID', 3);	//Partial Payment

//order shipment
define('ORDER_SHIPMENT_PENDING', 1);
define('ORDER_SHIPMENT_SUBMITTED', 2);
define('ORDER_SHIPMENT_PROCESSING', 3);
define('ORDER_SHIPMENT_SHIPPED', 4);
define('ORDER_SHIPMENT_RECEIVED', 5);

//order transaction
define('ORDER_TRANSACTION_AUTHORIZE', 1);	//
define('ORDER_TRANSACTION_CANCEL', 2);		//
define('ORDER_TRANSACTION_APPROVE', 3);		//
define('ORDER_TRANSACTION_INQUIRY', 4);		//

//const
define('CONST_DEFAULT_COUNTRY_ID', 223);
define('CONST_DEFAULT_USER_GROUP', 11);
define('CONST_DEFAULT_USER_CATEGORY', 1);
define('CONST_PLATINUM_USER_CATEGORY', 2);
define('CONST_DEFAULT_TAX_CLASS_ID', 1);
define('CONST_CC_OWNER_MIN_LENGTH', 3);
define('CONST_CC_NUMBER_MIN_LENGTH', 10);
define('CONST_SESSION_LIFE_TIME', 86400);//60 * 60 * 24 * 1
//
define('CONST_IMAGE_THUMB_WIDTH', 180);
define('CONST_IMAGE_THUMB_HEIGHT', 180);
define('CONST_IMAGE_RESIZE_WIDTH', 480);
define('CONST_IMAGE_RESIZE_HEIGHT', 480);
//
define('CONST_ACCOUNT_TYPE_OPTIONS', '[Pay Order=pay_order|Income=income|Other=other]');
define('CONST_ACCOUNT_PAY_OPTIONS', '[Pay Order=pay_order|Other=pay_other]');
define('CONST_ACCOUNT_INCOME_OPTIONS', '[Income=income|Other=income_other]');
//
define('CONST_MESSAGE_SYSTEM_ID', '1');
define('CONST_MESSAGE_SYSTEM_NAME', 'System');
define('CONST_MESSAGE_SYSTEM_EMAIL', '');
define('CONST_MESSAGE_TYPE_COMMON', '0');
define('CONST_MESSAGE_TYPE_REQUEST', '11');
define('CONST_MESSAGE_TYPE_QUESTION', '12');
//
define('CONST_STOCK_CHECK', 'true');
define('CONST_STOCK_LIMITED', 'true');
define('CONST_STOCK_ALLOW_CHECKOUT', 'true');
define('CONST_STOCK_MARK_OUT_OF_STOCK', '**');

//user/customer
//	0	no format
//	1	one
//	2	more
define('CONST_USER_FORMAT_TYPE', '1');
//require
define('CONST_USER_REQUIRE_FIELDS', 'company');
//fields
define('CONST_USER_FIELDS_ENABLED', '0');
define('CONST_USER_FIELDS_COUNT', '1');
define('CONST_USER_FIELDS_TEXTS', 'Seller\'s permit#');

//search
//product
//	common
//	autoitem
define('CONST_SEARCH_PRODUCT_TYPE', 'common');
define('CONST_SEARCH_CONTENT_TYPE', 'common');

//product
//	0	no format
//	1	one
//	2	more
define('CONST_PRODUCT_FORMAT_TYPE', '2');
//fields
define('CONST_PRODUCT_FIELDS_ENABLED', '0');
define('CONST_PRODUCT_FIELDS_COUNT', '2');
define('CONST_PRODUCT_FIELDS_TEXTS', 'Graphics Size|Custom Field');
//
define('CONST_PRODUCT_MIN_PRICE', '0');
define('CONST_PRODUCT_MAX_PRICE', '0');

//price
//	0	price
//	1	attribute option/order charge
//	2	msrp
//	3	user/user category DISCOUNT
//	4	user/user category/product category TYPE
//	5	user/user category/product/product category SELECT
define('CONST_PRICE_MODE_PRICE', 'price');
define('CONST_PRICE_MODE_QPS', 'qps');
define('CONST_PRICE_MODE_ATTRIBUTE', 'attribute');
define('CONST_PRICE_MODE_MSRP', 'msrp');
define('CONST_PRICE_MODE_UCD', 'ucd');
define('CONST_PRICE_MODE_UCT', 'uct');
define('CONST_PRICE_MODE_UCS', 'ucs');
define('CONST_PRICE_MODE_TYPE', 'qps');

//
define('CONST_DISPLAY_PRICE_WITH_TAX', 'false');

//account
//apply,register,activate
define('CONST_ACCOUNT_NEW_TYPE', 'apply');
define('CONST_ACCOUNT_NEW_PASSWORD', '12345');

//security
define('CONST_SECURITY_CHECK_CART', '0');
define('CONST_SECURITY_LOGIN_USERNAME', 'username');
define('CONST_SECURITY_LOGIN_EMAIL', 'email');
define('CONST_SECURITY_LOGIN_UID', 'uid');
define('CONST_SECURITY_LOGIN_TYPE', 'username_email');

//cart
//alert,tip,div,dialog
define('CONST_CART_JSCB_TYPE', 'dialog');

//cache
define('CONST_CACHE_CONTROL_ENABLED', '1');
define('CONST_CACHE_CONTROL_TIME', '86400');
define('CONST_CACHE_CONTROL_GZIP', '1');

//upload
define('CONST_UPLOAD_ENABLED', '0');

//download
define('CONST_DOWNLOAD_ENABLED', '0');

//JS
define('CONST_JS_PACKER', 'true');
define('CONST_JS_ALL', 'common.js|ajax.js|base.js|pjs.user.js|pjs.product.js|pjs.guide.js');
define('CONST_JS_GA', 'ga-min.js');
define('CONST_JS_V', '');

//text
define('CONST_TEXT_FIELD_REQUIRED', ' * ');
define('CONST_TEXT_FREE_SHIPPING', 'Free Shipping');
define('CONST_TEXT_UNKNOWN_TAX_RATE', 'Unknown tax rate');
//
?>